package App.Service;

import App.Model.Fee.*;
import App.Repository.FeeRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by xw on 2020/3/11.
 */


@Service
public class FeeService {

    @Autowired
    private FeeRepository _repository;

    //get lawer fee
    public GetLawFeeResponse getFee(GetLawFeeRequest _request, int userid) {
        GetLawFeeResponse _feeResponse = _repository.GetLawFee(_request);
        return _feeResponse;
    }

    public List<CrmCase> GetLawerCase(GetCaseRequest _request,int userid) {
       return  _repository.GetLawerCase(_request);
    }


    public GetLitigationFeeResponse getLitigationFee(GetLitigationFeeRequest _request, int userid) {
        GetLitigationFeeResponse _feeResponse = _repository.GetLitigationFee(_request,userid);
        return _feeResponse;
    }

}
